<template>
	<view class="test-detail">
		<view class="score-box">
			<view class="lv">
				<view class="label">等级</view>
				<view class="letter">A</view>
			</view>
			<view class="right-rate">
				<view class="label">正确率</view>
				<view class="score-rate">
					<view class="score">100</view>
					<view class="rate">%</view>
				</view>
			</view>
		</view>
		
		<view class="answer-data">
			<view class="label">答题数据</view>
			<view class="count-text"><text class="point"></text>本次共复习单词<text class="count-num">20</text>个</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import { ref } from 'vue';
	import { useStudyStore } from '@/store/study';
	const studyStore = useStudyStore();
	
	/** 测试结果 */
	defineOptions({ name: 'test-result', inheritAttrs: false });
	
	const emit = defineEmits(['next', 'module-event']);
</script>

<style lang="scss" scoped>
.test-detail{
	--font-color: #332c2b;
}

.test-detail{
	flex: 1;
	
	.score-box{
		background-color: #f8f8fa;
		border-radius: 26rpx;
		height: 280rpx;
		display: flex;
		
		.lv{
			flex: 1;
			display: flex;
			justify-content: center;
			flex-flow: column;
			align-items: center;
			.letter{
				font-size: 60rpx;
				font-weight: bold;
				color: #f55f22;
			}
		}
		.right-rate{
			flex: 1;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-flow: column;
			
			.score-rate{
				display: flex;
				align-items: flex-end;
				font-weight: bold;
				.score{
					font-size: 60rpx;
					color: #f55f22;
				}
				.rate{
					margin-bottom: 10rpx;
					font-size: var(--text-14);
					margin-left: 4rpx;
					color: #332c2b;
				}
			}
		}
		.label{
			font-size: var(--text-18);
			color: #332c2b;
			margin-bottom: 20rpx;
		}
	}

	.answer-data{
		margin-top: 80rpx;
		.label{
			padding-left: 130rpx;
			color: #332c2b;
			font-size: var(--text-18);
		}
		.count-text{
			margin-top: 8rpx;
			padding-left: 130rpx;
			color: #8b8b8c;
			
			.point{
				display: inline-block;
				margin-right: 20rpx;
				width: 18rpx;
				height: 18rpx;
				border-radius: 50%;
				background-color: #f55f22;
			}
		}
		.count-num{ color: #f55f22; font-weight: bold; margin-left: 4rpx; margin-right: 4rpx; }
	}
}


/* 针对 1280px 分辨率 */
@media(min-width:1200px){
	
}
</style>